package org.zetaframework.core.model;

import java.time.LocalDateTime;

/**
 * 定时任务日志
 *
 * @author gcc
 */
public class JobLogDTO {

    /**
     * 创建时间
     * <p>
     * 说明：<br>
     * 微服务项目，创建时间是【当前微服务】操作完成之后的时间。
     * 而不是将日志数据发送给日志服务，日志服务保存时的创建时间
     */
    private LocalDateTime createTime;

    /** 任务状态 {@link org.zetaframework.core.enums.JobLogStateEnum } */
    private String status;

    /** 操作描述 */
    private String description;

    /** 类路径 */
    private String classPath;

    /** 任务处理器名称 */
    private String jobHandlerName;

    /** 任务参数 */
    private String jobParam;

    /** 分片序号 */
    private Integer shardIndex;

    /** 分片总数 */
    private Integer shardTotal;

    /** 执行结果 状态码 */
    private Integer handleCode;

    /** 执行结果 描述 */
    private String handleMsg;

    /** 异常描述 */
    private String exception;

    /** 任务耗时 */
    private Long spendTime;

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getClassPath() {
        return classPath;
    }

    public void setClassPath(String classPath) {
        this.classPath = classPath;
    }

    public String getJobHandlerName() {
        return jobHandlerName;
    }

    public void setJobHandlerName(String jobHandlerName) {
        this.jobHandlerName = jobHandlerName;
    }

    public String getJobParam() {
        return jobParam;
    }

    public void setJobParam(String jobParam) {
        this.jobParam = jobParam;
    }

    public Integer getShardIndex() {
        return shardIndex;
    }

    public void setShardIndex(Integer shardIndex) {
        this.shardIndex = shardIndex;
    }

    public Integer getShardTotal() {
        return shardTotal;
    }

    public void setShardTotal(Integer shardTotal) {
        this.shardTotal = shardTotal;
    }

    public Integer getHandleCode() {
        return handleCode;
    }

    public void setHandleCode(Integer handleCode) {
        this.handleCode = handleCode;
    }

    public String getHandleMsg() {
        return handleMsg;
    }

    public void setHandleMsg(String handleMsg) {
        this.handleMsg = handleMsg;
    }

    public String getException() {
        return exception;
    }

    public void setException(String exception) {
        this.exception = exception;
    }

    public Long getSpendTime() {
        return spendTime;
    }

    public void setSpendTime(Long spendTime) {
        this.spendTime = spendTime;
    }
}
